package edu.hqu.experiment3_mysql.service.impl;

import edu.hqu.experiment3_mysql.dao.UserMapper;

import edu.hqu.experiment3_mysql.pojo.User;
import edu.hqu.experiment3_mysql.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;

    @Override
    public User findOne(Long id) {
        return userMapper.findOne(id);
    }
}
